package com.smartfactory.sail.entity.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;

import java.io.Serializable;

/**
 * @author 王巨壁
 * @title: UserEnum
 * @projectName smart-sail
 * @description: 订单产品状态 待定
 * @date 2019/7/310:03
 */
public enum OrderStatusEnum implements IEnum {
    CSH(0,"待排班"),
    YLBZ(1, "原料不足"),
    DFP(2, "待分配"),
    DSC(2, "待生产"),
    SCZ(3, "生产中"),
    DRK(4, "待入库"),
    WF(5, "外发中"),
    YRK(6, "已入库"),
    DFH(7, "待发货"),
    FHZ(8, "发货中"),
    YWC(9, "完成");

    OrderStatusEnum(int code, String descp) {
        this.code = code;
        this.descp = descp;
    }


    private final int code;
    private final String descp;

    public int getCode() {
        return code;
    }

    @JsonValue
    public String getDescp() {
        return descp;
    }

    @Override
    public Serializable getValue() {
        return code;
    }
}
